package com.frank.subject.infra.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frank.subject.infra.basic.entity.SubjectLabel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/3/5
 * @description 
 */
@Mapper
public interface SubjectLabelMapper extends BaseMapper<SubjectLabel> {


    /**
     * 根据标签ID列表查询
     *
     * @param labelIds label id list
     * @return label list
     */
    List<SubjectLabel> queryBatchLabelByIds(@Param("labelIds") List<Long> labelIds);

    /**
     * 根据条件查询
     *
     * @param subjectLabel 查询条件
     * @return label list
     */
    List<SubjectLabel> queryListByCondition(SubjectLabel subjectLabel);
}